<%@ page language="java" contentType="text/html; charset=GB18030"
	pageEncoding="GB18030"%>
<%@page import="ase.assignment.sts.api.*"%>
<%@page import="ase.assignment.sts.utils.STSConstants"%>
<%
			String username = (String) session
			.getAttribute(STSConstants.SESSION_USER);
	CustomerEntity customer = HandlerFactoryProxy.instance()
			.getCustomerHandler().find(username);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="ase.assignment.sts.beans.CustomerEntity"%>
<html>
<head>
<title>Account</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="infodiv"><a href="#">Signin</a>&nbsp;|&nbsp;<a
	href="#">help</a>&nbsp;|&nbsp;<a href="#">My Account</a>&nbsp;|&nbsp;<a
	href="index.html">home</a></div>

<table id="mt" cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr>
		<th class="inactiveth">
		<div class="activetab"><a onclick="cancelBubble=true;"
			href="portfolio.jsp">Portfolio Info</a></div>
		</th>
		<td>&nbsp;&nbsp;</td>

		<th class="inactiveth">
		<div class="inactivetab"><a onclick="cancelBubble=true;"
			href="stock.jsp">Stock Info</a></div>
		</th>
		<td>&nbsp;&nbsp;</td>


		<th class="activeth">
		<div class="inactivetab"><a onclick="cancelBubble=true;"
			href="account.jsp">Account</a></div>
		</th>
		<td>&nbsp;&nbsp;</td>

		<th class="inactiveth">
		<div class="inactivetab"><a onclick="cancelBubble=true;"
			href="portfolio_chart.jsp">Summary Chart</a></div>
		</th>
		<td>&nbsp;&nbsp;</td>

		<td width="100%">&nbsp;</td>
	</tr>
</table>

<table cellspacing="0" cellpadding="0" width="100%" align="center"
	border="0" style="background-color: #c3d9ff;">
	<tr>
		<td height="4px" align="right"
			style="padding: 0px; vertical-align: top"></td>
	</tr>
</table>
<div class="summary">
<div class="summaryc">Your account is <u><%=customer.getName()%></u>.
Email address is <u><%=customer.getEmail()%></u>.</div>
&nbsp;</div>

<!-- this table shows the all portfolios -->


<table id="ct" width="100%" cellpadding="2" cellspacing="0" class="ct">
	<tr>
		<td colspan="2" class="ht">Account informtion edit</td>
	</tr>


	<table width="100%" cellpadding="2" cellspacing="1"
		style="border: 1px solid #80aeff">

		<form name="usernamechange" method="post" action="Account.do"
			onsubmit="if(getElementById('password').value.length==0 || getElementById('confirm').value!=getElementById('password').value) 
			{
			alert('Please make sure password is not null and consistent with confirm!'); 
			return false;
			} 
			return true;">
		<tr>

			<td><label>password:</label></td>
			<td><input type="password" name="password" value=""
				id="password" size="20" /></td>
		</tr>
		<tr>
			<td><label>confirm:</label></td>
			<td><input type="password" name="confirm" id="confirm" size="20" /></td>

		</tr>

		<tr>

			<td><label>email:</label></td>
			<td><input type="text" name="email"
				value="<%=customer.getEmail() %>" id="email" size="20" /></td>


		</tr>
		<tr>
			<td><input type="submit" value="submit">&nbsp;&nbsp; <input
				type="reset" name="reset" value="reset"></td>
		</tr>
		</form>

	</table>
</body>